.class Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/VisibilityChangedEvent;
.super Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidEvent;
.source "VisibilityChangedEvent.java"


# static fields
.field static final EVENT_ID:I = 0x4

.field private static final VIEWABLE:Ljava/lang/String; = "viewable"


# direct methods
.method constructor <init>()V
    .locals 0

    .prologue
    .line 25
    invoke-direct {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidEvent;-><init>()V

    return-void
.end method


# virtual methods
.method fireEvent(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;[Ljava/lang/Object;)V
    .locals 4
    .parameter "mraidView"
    .parameter "args"

    .prologue
    const/4 v3, 0x0

    .line 39
    invoke-static {p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/VisibilityChangedEvent;->checkArgs([Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 58
    :goto_0
    return-void

    .line 42
    :cond_0
    aget-object v2, p2, v3

    check-cast v2, Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v1

    .line 43
    .local v1, visibility:I
    invoke-virtual {p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->publishBridgeLoaded()V

    .line 44
    invoke-virtual {p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->isShown()Z

    move-result v0

    .line 45
    .local v0, shown:Z
    if-eqz v0, :cond_1

    if-nez v1, :cond_1

    .line 46
    const-string v2, "viewable"

    const/4 v3, 0x1

    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v3

    invoke-virtual {p1, v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->fireSimpleChangeEvent(Ljava/lang/String;Ljava/lang/Object;)V

    goto :goto_0

    .line 48
    :cond_1
    const-string v2, "viewable"

    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v3

    invoke-virtual {p1, v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->fireSimpleChangeEvent(Ljava/lang/String;Ljava/lang/Object;)V

    goto :goto_0
.end method
